package com.dbgs.executer.deliver;

import java.util.concurrent.Executor;

public class JavaDeliver  implements Executor {


    private static volatile JavaDeliver mInstance;

    private JavaDeliver() {
    }

    public static JavaDeliver getInstance() {
        if (mInstance == null) {
            synchronized (JavaDeliver.class) {
                if (mInstance == null) {
                    mInstance = new JavaDeliver();
                }
            }
        }
        return mInstance;
    }

    @Override
    public void execute(Runnable runnable) {
        runnable.run();
    }
}
